<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var promise = new Promise(function (resolve, reject) {
            resolve(100)
        });
        promise.then(value => value)
            .then(value => value)
            .then(value => console.log(value),reason =>console.log(error))
    </script>
</body>

</html>